package com.midou.administration.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.midou.administration.entity.SetMeal;
import com.midou.administration.mapper.SetMealMapper;
import com.midou.administration.service.SetMealService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author MrChen
 * @since 2021-03-24
 */
@Service
public class SetMealServiceImpl implements SetMealService {
    @Resource
    private SetMealMapper setMealMapper;
    @Override
    public List<SetMeal> querySetMeal(Integer mid) {
        QueryWrapper qw = new QueryWrapper();
        qw.eq("menu_Id",mid);
        return setMealMapper.selectList(qw);
    }
}
